const { tool,time,api } = getApp();
Page({

    data: {
        topic: {},      // 课题信息
    },
    getTopic(){
      api.getStorage('userInfo').then(info=>{
        let open_id=info.open_id
        tool.getStuTopic({open_id:open_id}).then(res=>{
          this.setData({
            topic:res[0]
          })
        })
      })
    },
    // 页面加载
    onLoad(options) {
        
    },
    onShow(){
      this.getTopic();
    }
    
})